In-N-Out burger has been plagued by cheap employees, who for some odd reason refuse to put a sizable amount of French fries in each order. To remedy this, the In-N-Out higher-ups decided to put their employees through math practice. However, the employees refused to be coerced to do basic math problems, and developed a programming solution for the problem. They were supposed to determine the average of all positive numbers between two limits.
Input Format
Two integer representing the limits between which the average of all the POSITIVE integers should be found. The first integer is the smaller limit of the two.
Sample Input
-5
5
Output Format An double representing the average of all the POSITIVE numbers between those numbers (non-inclusive).
Sample Output
2.5
You must be logged in to submit a solution.